package com.huidu.bitrade.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("system_config")
@Entity
public class SystemConfig {

    @ApiModelProperty("id")
    @Id
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty("参数名称")
    private String configName;

    @ApiModelProperty("参数key")
    private String configKey;

    @ApiModelProperty("参数组")
    private String configGroup;

    @ApiModelProperty("参数值")
    private String configValue;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("0.禁用1.启用")
    private Integer status;

    @ApiModelProperty("创建时间")
    private Long createTime;

    @ApiModelProperty("修改时间")
    private Long updateTime;
}
